﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bamboo.CodeCat
{
    /// <summary>
    /// 标记当前方法或者属性是一个翻译宏
    /// </summary>
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)]
    public class MacroAttribute: Attribute
    {
        /// <summary>
        /// 宏名称，空代表与方法或属性名一致
        /// </summary>
        public string MacroName { get; } = "";

        public MacroAttribute()
        {
        }

        public MacroAttribute(string macroName)
        {
            this.MacroName = macroName;
        }
    }
}
